package com.stooscloud.provider.service;


import com.stooscloud.provider.model.dto.response.TwoThreeElementRespose;
import com.stooscloud.provider.service.hystrix.TwoThreeElementFeignApiHystrix;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

@FeignClient(url ="${stooscloud.pfx.url}",fallback = TwoThreeElementFeignApiHystrix.class,name = "TwoThreeElementChk")
public interface TwoThreeElementFeignApi{
    @PostMapping(value = "/operators/v2/auth",consumes = "application/x-www-form-urlencoded")
    @Headers("Content-Type: application/x-www-form-urlencoded")
    TwoThreeElementRespose call(Map<String, ?> formParams);
}
